package com.ruoyi.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 家属绑定对象 customer_bind
 * 
 * @author luogongquan
 * @date 2024-09-11
 */
public class CustomerBind extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 绑定用户id */
    @Excel(name = "绑定用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long customerId;

    /** 被绑定用户id */
    @Excel(name = "被绑定用户id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long bindCustomerId;

    /** 绑定状态（1：待确认，2：已确认） */
    @Excel(name = "绑定状态", readConverterExp = "1=：待确认，2：已确认")
    private String status;

    /** 是否删除( 0:未删除，2：已删除) */
    private String delFlag;


    /** 关系类(1=父母,2=子女,3=其他关系) */
    @Excel(name = "关系类(1=父母,2=子女,3=其他关系)")
    private String relationsType;

    public String getRelationsType() {
        return relationsType;
    }

    public void setRelationsType(String relationsType) {
        this.relationsType = relationsType;
    }

    private List<Long> bindCustomerIds;

    public List<Long> getBindCustomerIds() {
        return bindCustomerIds;
    }

    public void setBindCustomerIds(List<Long> bindCustomerIds) {
        this.bindCustomerIds = bindCustomerIds;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setBindCustomerId(Long bindCustomerId) 
    {
        this.bindCustomerId = bindCustomerId;
    }

    public Long getBindCustomerId() 
    {
        return bindCustomerId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("bindCustomerId", getBindCustomerId())
            .append("createTime", getCreateTime())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
